#define  _CRT_SECURE_NO_WARNINGS  1
int GetNumberOfK(int* data, int dataLen, int k) 
{
    int i = 0;
    int count = 0;
    for (i = 0; i < dataLen; i++)
    {
        if (k == data[i])
        {
            count++;
        }
    }
    return count;
}